<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理员页面</title>
</head>
<body>
    <button onclick="safeExit()">安全退出</button><br>
    <h1 id="pageInfo"></h1>
    <button onclick="updateWord()">修改密码</button>
    <button onclick="func02()">管理老师</button>
    <button onclick="func03()">管理学科</button>
    <button onclick="func04()">管理学生</button>
</body>
<script src="js/jquery-1.8.2.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">

    function safeExit(){
        window.location = "user?action=doLoginOut";
    }
    function updateWord(){
        window.location = "resetPassword.html";
    }

    $.post(
        "admin",
        {"action":"getAdmin"},
        function (data){

            let admin = eval("(" + data + ")").username;

                $("#pageInfo").text("欢迎" + admin + "管理员进入到学生管理系统");

        }
    )
</script>
</html>